<style>
    .ciw{width: 100px;height: 30px}
</style>
<div>
    <form data-id="conditionForm" method="post"
            action="${pageContext.request.contextPath}/app/api/attendance/selfCountPie">
        <input type="hidden" name="userId" value="${loginUser.id}">
        <input type="hidden" name="excelInfo.template" value="" data-id="template">
        <table border="0" cellpadding="0" cellspacing="0" class="hydra-table">
            <tr class="hydra-tr-bg">
                <td class="hydra-left">年份：</td>
                <td class="hydra-right">
                    <select data-id="year" name="year" class="hydra-input-width ciw">
                        <option value="">全部</option>
                        <c:forEach var="y" begin="2013" end="${now}">
                            <option value="${y}"
                                    <c:if test="${y eq now}">selected="selected"</c:if>
                                    >${y}年</option>
                        </c:forEach>
                    </select>
                </td>
                <td class="hydra-left">月份：</td>
                <td class="hydra-right">
                    <select data-id="month" name="month" class="hydra-input-width ciw">
                        <option value="" selected="selected">全部</option>
                        <c:forEach var="m" begin="1" end="12">
                            <option value="${m}">${m}月</option>
                        </c:forEach>
                    </select>
                </td>
                <td class="hydra-left">考勤事由：</td>
                <td class="hydra-right">
                    <select data-id="reason" name="reason.id" class="hydra-input-width ciw">
                        <option value="" selected="selected">全部</option>
                        <c:forEach items="${reasonList}" var="reason">
                            <option value="${reason.id}">${reason.dirValue}</option>
                        </c:forEach>
                    </select>
                </td>
            </tr>
        </table>
    </form>
</div>

<div id="echartPie" style="border: 1px solid #ccc;height: 350px;width: 80%;margin-left: 10%;margin-top: 5px"></div>

<div class="grid-wrap">
    <table data-id="grid"></table>
</div>
<div data-id="nsdb" style="padding: 5px; height: auto">
    <%--<shiro:hasPermission name="attendance:data:del">--%>
        <%--<a data-href="${pageContext.request.contextPath}/app/api/attendance/delete" data-key="del" iconCls="fa fa-trash fa-lg" plain="true">删除</a>--%>
    <%--</shiro:hasPermission>--%>
    <%--<shiro:hasPermission name="attendance:data:export">--%>
        <a data-href="${pageContext.request.contextPath}/app/api/attendance/export" data-key="export" iconCls="fa fa-file-excel-o fa-lg" plain="true">数据导出</a>
        <%--<a data-href="${pageContext.request.contextPath}/app/api/attendance/exportCount" data-key="exportCount" iconCls="fa fa-file-excel-o fa-lg" plain="true">考勤统计</a>--%>
        <%--<a data-href="${pageContext.request.contextPath}/app/api/attendance/exportOverWork" data-key="exportOverWork" iconCls="fa fa-file-excel-o fa-lg" plain="true">加班数据</a>--%>
    <%--</shiro:hasPermission>--%>
</div>
<div data-id="attendance_tempate">
    <%--<shiro:hasPermission name="attendance:data:edit">--%>
        <%--<a data-href="${pageContext.request.contextPath}/app/api/attendance/toUpdate" data-id="{{id}}" data-key="edit" iconCls="fa fa-edit fa-lg" plain="true">编辑</a>--%>
    <%--</shiro:hasPermission>--%>
        <a data-href="${pageContext.request.contextPath}/app/api/attendance/toView" data-id="{{id}}" data-key="view" iconCls="fa fa-eye fa-lg" plain="true">查看详情</a>
</div>